package com.maoatao.easycodegen.framework.model;

import lombok.Getter;

/**
 * 列名
 *
 * @author MaoAtao
 * @date 2025-10-04
 */
@Getter
public final class ColumnName {

    /**
     * 数据库字段名称
     */
    private final String dbColumnName;

    /**
     * java字段名称
     */
    private final String javaFieldName;

    public ColumnName(String dbColumnName, String javaFieldName) {
        if (dbColumnName == null) {
            throw new IllegalArgumentException("dbColumnName cannot be null");
        }
        this.dbColumnName = dbColumnName;
        if (javaFieldName == null) {
            throw new IllegalArgumentException("javaFieldName cannot be null");
        }
        this.javaFieldName = javaFieldName;
    }
}
